package com.mkb.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.GraphUserDAO;
import com.mkb.entity.GraphUserDO;
import com.mkb.mapper.GraphUserMapper;

import java.util.List;
import java.util.Map;

@Repository
public class GraphUserDAOImpl implements GraphUserDAO{
	
	@Autowired
	private GraphUserMapper graphUserMapper;
	
	@Override
	public int deleteById(Long id) {
		return graphUserMapper.deleteById(id);
	}

	@Override
	public int insert(GraphUserDO record) {
		return graphUserMapper.insert(record);
	}

	@Override
	public GraphUserDO getById(Long id) {
		return graphUserMapper.getById(id);
	}

	@Override
	public int update(GraphUserDO record) {
		return graphUserMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return graphUserMapper.count(map);
	}

	@Override
	public List<GraphUserDO> queryList(Map<String, Object> params) {
		return graphUserMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<GraphUserDO> dos) {
           return graphUserMapper.insertBatch(dos);
        }

	@Override
	public int deleteByGraphId(Long graphId) {
		return graphUserMapper.deleteByGraphId(graphId);
	}
}
